-- GENERATED SPELL FOR [Proto-Drake] --


function spell0_23689(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(51219,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23689', 2000, 1)
end

function spell1_23689(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(41572,pUnit)
pUnit:RegisterEvent('Sorts_23689', 1000, 1)
end

function Sorts_23689(pUnit, Event)
local choix_sorts_23689 = math.random(0, 1)
if choix_sorts_23689 == 0 then
pUnit:RegisterEvent('spell0_23689', 1, 1)
end
if choix_sorts_23689 == 1 then
pUnit:RegisterEvent('spell1_23689', 1, 1)
end
end

function mob23689_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23689', math.random(1500, 3000), 1)
end

function mob23689_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23689_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23689_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23689, 1, 'mob23689_Action')
RegisterUnitEvent(23689, 2, 'mob23689_Leave')
RegisterUnitEvent(23689, 3, 'mob23689_Kill')
RegisterUnitEvent(23689, 4, 'mob23689_Die')
